<?php

// 关注每一步的细节，比如加鸡蛋还是加烤肠，要不要加辣
class BuilderX extends Builder
{
    private $product;

    public function __construct()
    {
        $this->product = new Product('我是一个美味的手抓饼');
    }

    public function buildA()
    {
        $this->product->add('step1 点火加油');
    }

    public function buildB()
    {
        $this->product->add('step2 放入手抓饼');
    }

    public function buildC()
    {
        $this->product->add('step3 加鸡蛋');
    }

    public function buildD()
    {
        $this->product->add('step4 出锅');
    }

    public function getProduct()
    {
        return $this->product;
    }
}